// import { login,logout ,getInfo} from "@/api/user";
import { getToken, setToken, removeToken } from "@/utils/auth";
import router, { resetRouter } from "@/router";

const state = {
  sysInfo:{
    id:'',
    sysName:'',
    copyRight:''
  },

};

const mutations = {

  SET_SYS_INFO(state,sysInfo){
    console.log(sysInfo)
    state.sysInfo=sysInfo;
  },
};

const actions = {

  setSysInfoDetail({commit},sysInfo) {
    return new Promise(resolve => {
      commit('SET_SYS_INFO',sysInfo);
      resolve()
    })
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
